<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

    class MY_Form_validation extends CI_Form_validation {

        function __construct()
        {
            parent::__construct();
        }

        function dropdown_check($str,$info)
        {
            if ($str == "0")
            {
                $CI = &get_instance();
                $CI->form_validation->set_message("dropdown_check", "Please choose $info <b>%s</b>!");
                return FALSE;
            }
            else
            {
                return TRUE;
            }
        }

        function valid_day_month($str,$info)
        {
            $CI = &get_instance();
            //$CI->firephp->log($str);

            // clean string
            $str = $CI->date_input->clean_string($str);


            if (!$CI->date_input->valid_day_month($str))
            {  
                $CI->form_validation->set_message("valid_day_month", "Please corect <b>%s</b> $info fromat!");
                return FALSE;
            }
            else
            {
                return TRUE;
            }
        }

}